<!-- $Id: arrest_month.html 118 2008-05-03 20:51:57Z doug.hellmann $ -->
{% extends "base.html" %}

{% block pagetitle %} | {{month|date:"M"}} {{year|date:"Y"}} Cases{% endblock %}

{% block breadcrumbs %}
  <a href="{% url docket.arrest.decade_list %}">Browse</a>
  {% if decade %}
  | <a href="{% url docket.arrest.decade decade.year %}">{{decade|date:"Y"}}</a>
  {% endif %}
{% endblock %}

{% block content %}
  <div class="case_list">
    <h2>Arrests in {{month|date:"M"}} {{year|date:"Y"}}</h2>

	<table>
	  <tr><th>Case Number</th><th>Arrest Date</th><th>Defendant</th><th>Violations</th></tr>
{% for case in case_list %}
	  <tr>
		<td><a href="{% url docket.views.case case.year,case.num %}">{{case.year}}/{{ case.num }}</a></td>
		<td>{{ case.arrest_date|date:"d M Y" }}</td>
		<td>{{ case.defendant.sortable_name }}</td>
		<td>{{ case.violation_codes }}</td>
	  </tr>
{% endfor %}
	</table>

  </div>
{% endblock %}


  
{% block navigation %} 
  {% if year %}
    <div><a href="{% url docket.arrest.month year.year,1 %}">{{year|date:"Y"}}</a></div>
  {% endif %}
  {% for month in month_list %}
	<div><a href="{% url docket.arrest.month year.year,month.month %}">{{ month|date:"M" }}</a></div>
  {% endfor %}

{% if previous_month or next_month %}
	<hr/>
	<div class="next_prev_links">
	<div class="yui-g">

	<div class="yui-u first">
{% if previous_month %}
	<a class="previous_link"
	   href="../../{{previous_month|date:"Y"}}/{{previous_month|date:"m"}}/">
	   &lt;&lt; {{previous_month|date:"M Y"}}
	</a>
{% else %}&nbsp;
{% endif %}
	</div>

	<div class="yui-u">
{% if next_month %}
	<a class="next_link"
	   href="../../{{next_month|date:"Y"}}/{{next_month|date:"m"}}/">
	{{next_month|date:"M Y"}} &gt;&gt;
	</a>
{% else %}&nbsp;
{% endif %}
	</div>
	
	</div>
	</div>
{% endif %}
	
{% endblock %}
